import { NgModule, ErrorHandler } from '@angular/core';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { Geolocation } from '@ionic-native/geolocation';
import { Device } from '@ionic-native/device';
import { Camera, CameraOptions } from '@ionic-native/camera';
import { NativeStorage } from '@ionic-native/native-storage';
import { MyApp } from './app.component';

//ionic tabs page
import { RedPacketPage } from '../pages/redPacket/redPacket';
import { ConveniencePage } from '../pages/convenience/convenience';
import { TradingAreaPage } from '../pages/tradingArea/tradingArea';
import { MinePage } from '../pages/mine/mine';
import { HomePage } from '../pages/home/home';
import { TabsPage } from '../pages/tabs/tabs';

//首页
import { annunciatePage } from '../pages/annunciate/annunciate';
import { annunciateDetailPage } from '../pages/annunciateDetail/annunciateDetail';

import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';

@NgModule({
  declarations: [
    MyApp,
    RedPacketPage,
    ConveniencePage,
    TradingAreaPage,
    MinePage,
    HomePage,
    TabsPage,
    annunciatePage,//home下小区通告页面
    annunciateDetailPage
  ],
  imports: [
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    RedPacketPage,
    ConveniencePage,
    TradingAreaPage,
    MinePage,
    HomePage,
    TabsPage,
    annunciatePage,
    annunciateDetailPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    Geolocation,
    Device,
    Camera,
    NativeStorage,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {}
